package com.zhengyuedong.bbs.core.service;

import java.util.List;

import com.zhengyuedong.bbs.core.dao.TopicDAO;
import com.zhengyuedong.bbs.core.entity.Topic;

public class IndexService {

	private TopicDAO topicDAO;

	public List<Topic> queryTopicListForIndex() {
		return topicDAO.findAll();
	}

	public TopicDAO getTopicDAO() {
		return topicDAO;
	}

	public void setTopicDAO(TopicDAO topicDAO) {
		this.topicDAO = topicDAO;
	}

}
